import { Icon, Style } from "ol/style";
import icon from "../../img/icon/游乐.svg";
import data from "../json/娱乐位置.json";
import { newLayerFromGeoJSON } from "../loader";

const style = new Style({
  image: new Icon({
    src: icon,
    scale: 0.1,
  }),
});

export default newLayerFromGeoJSON(data, { style: style, addText: true });
